package com.jdym.service.impl;

import com.jdym.entity.Return;
import com.jdym.mapper.ReturnMapper;
import com.jdym.service.ReturnService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 还款表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Service
public class ReturnServiceImpl extends ServiceImpl<ReturnMapper, Return> implements ReturnService {
    @Autowired
    ReturnMapper returnMapper;

    @Override
    public List<Return> getAllPutLoanReturn(int firmId) {
        return returnMapper.getAllPutLoanReturn( firmId);

    }

    @Override
    public Return selectReturnById(int returnId) {
        return returnMapper.selectReturnById(returnId);
    }

    @Override
    public void updateReturnById(Return r) {
         returnMapper.updateReturnById(r);
    }
}
